#include "util/trimatrix.h"
#include <stdio.h>

void print_trimatrix (Trimatrix* matrix)
{
#ifndef NOPRINT
  for (int i = 0; i < matrix->n; i++)
  {
    for (int j = 0; j <= i; j++)
    {
      int v = trimatrix_elem (matrix, i, j);
      printf ("%d ", v);
    }
    printf("\n");
  }
#endif
}
